#region Copyright 2009 by Mike Podonyi, Licensed under the GNU Lesser General Public License
/*  This file is part of Console.Net.

 *  Console.Net is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  Console.Net is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.

 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Console.Net.  If not, see <http://www.gnu.org/licenses/>.
 */
#endregion

namespace Empi.Consolenet
{
    internal class Message
    {
        internal Message(MessageTypes messageType, params string[] messageValues)
        {
            MessageType = messageType;
            //ErrorMessage = errorMessage;
            MessageValues = messageValues;
        }

        //internal void SetError(MessageTypes errorType, string errorMessage, params string[] args)
        //{
        //    MessageType = errorType;
        //    ErrorMessage = string.Format(errorMessage,args);
        //}

        internal static Message Empty
        { get { return new Message(MessageTypes.None); } }


        internal MessageTypes MessageType
        { get; private set; }

        internal string[] MessageValues
        { get; private set; }

        internal bool HasMessage
        { get { return MessageType != MessageTypes.None; } }

        //internal string ErrorMessage
        //{ get; private set; }
    }
}